#include "comm.hpp"

int main()
{
    struct msgbuffer sendbuf;
    
    sendbuf.type = 1;
    std::cout << "please input message: \n";
    std::cin >> sendbuf.body;

    msgsnd(msg.Getid(),(void*)&sendbuf,sizeof(sendbuf.body),0);
    std::cout << "消息发送成功: " << sendbuf.body << std::endl;
    
    return 0;
}